﻿
@{
    ViewBag.Title = "Search";
}

<h2>Search</h2>
<p>
@Html.ActionLink("Create group", "Create") |
@Html.ActionLink("My groups", "JoinedGroups")
</p>

@using (Ajax.BeginForm("Search", "Group", new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "searchResult" }))
{
    <input type="text" name="q" />
    <input type="submit" value="Search" />
}    


<div id="searchResult">

</div>